<style>
	label{width:112px!important;}
</style>
<?php $today=getdate();?>
<div id="box">
  <form action="<?php echo base_url(); ?>admin/activityprice/<?php if(isset($_GET['id'])) echo "update?activityid=".intval($_GET['activityid'])."&id=".$_GET["id"];else echo "insert?activityid=".intval($_GET['activityid']);?>" method="post" enctype="multipart/form-data">
    <fieldset id="personal">
      <legend>&nbsp;&nbsp;Edit Activity&nbsp;&nbsp;</legend>
      <label>ID : </label>
      <?php if(count($detail)>0) echo $detail['id'];else echo "ID"; ?>
      <br>
      <label>Date from : </label>
      <input name="datefrom" required type="text" class="datepicker" value="<?php if(isset($_GET['id'])) echo date("Y-m-d",strtotime($detail['datefrom']));else echo $today['year']."-".$today['mon']."-".$today['mday'] ?>" />
      <br>
      <label>Date to : </label>
      <input name="dateto" required type="text" class="datepicker" value="<?php if(isset($_GET['id'])) echo date("Y-m-d",strtotime($detail['dateto']));else echo $today['year']."-".$today['mon']."-".$today['mday'] ?>" />
      <br>
      <label>Price for 1 : </label>
      <input name="pricefor1" required type="text" value="<?php echo $detail['pricefor1']; ?>" />
      <br>
      <label>Price for 2 : </label>
      <input name="pricefor2" required type="text" value="<?php echo $detail['pricefor2']; ?>" />
      <br>
      <label>Price for 3-4 : </label>
      <input name="pricefor34" required type="text" value="<?php echo $detail['pricefor34']; ?>" />
      <br>
      <label>Price for 5-8 : </label>
      <input name="pricefor58" required type="text" value="<?php echo $detail['pricefor58']; ?>" />
      <br>
      <label>Price for 9-12 : </label>
      <input name="pricefor912" required type="text" value="<?php echo $detail['pricefor912']; ?>" />
      <br>
      <label>Price for 13-16 : </label>
      <input name="pricefor1316" required type="text" value="<?php echo $detail['pricefor1316']; ?>" />
      <br>
      <label>Price for >16 : </label>
      <input name="pricefor16" required type="text" value="<?php echo $detail['pricefor16']; ?>" />
      <br>
      <label>Status : </label>
      <select name="status" style="margin-left:0">
        <option value="1" <?php if($detail['status']==1) echo "selected"; ?>>Highlights</option>
        <option value="2" <?php if($detail['status']==2) echo "selected"; ?>>Normal</option>
        <option value="3" <?php if($detail['status']==3) echo "selected"; ?>>Hide</option>
      </select><br>

      <div style="float:left;padding-top:5px;padding-left:40%;">
        <input type="reset" value="Reset">
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Submit">
      </div>
    </fieldset>
  </form>
</div>
